#include <Arduino.h>
#include <TM1638lite.h>

// I/O pins on the Arduino connected to strobe, clock, data
// (power should go to 3.3v and GND)
TM1638lite tm(D1, D2, D3);

void setup() 
{
  tm.reset();
  Serial.begin(115200);
}

void loop() 
{
  uint8_t buttons = tm.readButtons();
  Serial.println(buttons);
  tm.setLED(buttons, 1);
  tm.displayHex(buttons, buttons);
}

